package likou.jindian;

/**
 * @Info:
 * @Author: Tangxz
 * @Date: 2020/09/20 12:16
 */
public class _01_01 {
    public boolean isUnique(String astr) {
        // 返回标志
        boolean flag = false;
        byte[] bs = astr.getBytes();
        out:for(int i=0; i<bs.length; i++) {
            for(int j=i+1; j<bs.length; j++) {
                if(bs[i] == bs[j]) {
                    flag = true;
                    break out;
                }
            }
        }
        return !flag;
    }
}
